﻿Imports System.Collections.Generic

Namespace Model

    Public Class Phone
        Implements System.IEquatable(Of Phone)

        Public Property User As User
        Public Property PhoneNumber As String

        Overloads Function Equals(ByVal otherPhone As Phone) As Boolean _
            Implements IEquatable(Of Phone).Equals

            If Me.User.Equals(otherPhone.User) And Me.PhoneNumber = otherPhone.PhoneNumber Then
                Return True
            End If

            Return False
        End Function

    End Class

End Namespace
